package com.buba.service;
import com.baomidou.mybatisplus.extension.service.IService;
import entity.salary.Insurance;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author beisheng
 * @since 2023-03-14
 */
public interface InsuranceService extends IService<Insurance> {

    /* *
     * @Author: beisheng
     * @Descriprion: 查询所有险种名称
     * @Date: 2023/3/16 16:19
     * @Return: common.R
     * @Param: []
     */

    List<String> selAllInsuName(Integer insuranceType);

    /* *
     * @Author: beisheng
     * @Descriprion: 根据名称查找险种
     * @Date: 2023/3/16 16:51
     * @Return: common.R
     * @Param: [allInsuName]
     */

    List<Insurance> selAllInsuces(List<String> allInsuName, Integer insuranceType);

    /* *
     * @Author: beisheng
     * @Descriprion: 添加社保险种
     * @Date: 2023/3/21 20:14
     * @Return: common.R
     * @Param: [map]
     */

    void saveSocialToInsurance(Map<String, Object> map);

    /* *
     * @Author: beisheng
     * @Descriprion: 添加公积金险种
     * @Date: 2023/3/21 20:14
     * @Return: common.R
     * @Param: [map]
     */

    void saveAccumToInsurance(Map<String, Object> map);

    /* *
     * @Author: beisheng
     * @Descriprion: 修改社保险种
     * @Date: 2023/3/21 20:14
     * @Return: common.R
     * @Param: [map]
     */

    void updateSocialToInsurance(Map<String, Object> map);

    /* *
     * @Author: beisheng
     * @Descriprion: 修改公积金险种
     * @Date: 2023/3/21 20:14
     * @Return: common.R
     * @Param: [map]
     */

    void updateAccumToInsurance(Map<String, Object> map);

    /* *
     * @Author: beisheng
     * @Descriprion: 根据选择的险种查询险种详情
     * @Date: 2023/4/4 11:12
     * @Return: common.R
     * @Param: [checkedCities]
     */

    List<Insurance> getInsurance(List<String> checkedCities);
}
